package br.senai.sc.util;

import java.util.Map;

import javax.faces.context.FacesContext;

public class SessionObjectDestroyer {

	public static void destroy(){
		Map<?, ?> map = FacesContext.getCurrentInstance().getExternalContext().getSessionMap();		
		System.out.println("TAMANHO: "+map.size());
		FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove("editalController");
		FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove("lanceController");
		FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove("produtoServicoController");
		FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove("usuarioController");
		System.out.println("TAMANHO: "+map.size());
	}
}
